package websocket

import "github.com/gogf/gf/v2/frame/g"

// 当前输入对象
type request struct {
	Event string `json:"event"` //事件名称
	Data  g.Map  `json:"data"`  //数据
}

// WResponse 输出对象
type WResponse struct {
	Event string      `json:"event"` //事件名称
	Data  interface{} `json:"data"`  //数据
}

// TagWResponse 标签响应
type TagWResponse struct {
	Tag       string
	WResponse *WResponse
}

// UserWResponse 用户响应
type UserWResponse struct {
	UserID    uint64
	WResponse *WResponse
}

// ClientWResponse 客户端响应
type ClientWResponse struct {
	ID        string
	WResponse *WResponse
}
